﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Diet
{
    public class Salad
    {
        List<AbstractVegetables> vegetables;
        public void AddVegetable(AbstractVegetables vegetable)
        {
            if (vegetables == null)
            {
                vegetables = new List<AbstractVegetables>();
                vegetables.Add(vegetable);
            }
            else
            {
                vegetables.Add(vegetable);
            }

        }

        public List<AbstractVegetables> Vegetables
        {
            get { return vegetables; }
        }
    }
}
